%----------------------------------------------------------------------
\colorlet{darkergray}{gray!60!black}
\colorlet{xKolorTlo}{Plum!20}
\colorlet{xKolorNapis}{purple!50!black}

\definecolor{colorJade2}{RGB}{20,175,119}
\definecolor{colorJade5}{RGB}{76,194,151}
\definecolor{colorXamppGreyBlue}{RGB}{44,84,116}
\definecolor{colorXamppOrange1}{RGB}{225,109,31}
\definecolor{colorXamppOrange2}{RGB}{251,121,34}
%\definecolor{colorXamppGreyMagenta}{RGB}{80,80,96}
\definecolor{colorXamppGreyMagenta}{RGB}{166,166,199}
%----------------------------------------------------------------------
\colorlet{darkergray}{gray!60!black}
\colorlet{xKolorTlo}{Plum!20}
\colorlet{xKolorNapis}{purple!50!black}
\colorlet{darkertan}{Tan!50!black}
\definecolor{colorJade2}{RGB}{20,175,119}
\definecolor{colorJade5}{RGB}{76,194,151}
\definecolor{colorXamppGreyBlue}{RGB}{44,84,116}
\definecolor{colorXamppOrange1}{RGB}{225,109,31}
\definecolor{colorXamppOrange2}{RGB}{251,121,34}
\definecolor{colorXamppGreyMagenta}{RGB}{166,166,194}
\definecolor{kNiebieski}{RGB}{4, 70, 126}
\definecolor{kZolty}{RGB}{100, 82, 10}
\definecolor{kOranz}{RGB}{231, 111, 0}
\definecolor{kNiebieski2}{RGB}{50, 55, 135}
\definecolor{kCyanoNiebieski}{RGB}{0, 97, 138} % My z MySQL
\definecolor{kNiebieskawy}{RGB}{0, 113, 187} % CSS3 niebieskie logo
\definecolor{kRedishOrange}{RGB}{228, 76, 38} % HTML5
\definecolor{kZoltawy}{RGB}{229, 162, 40} % JavaScript logo ciemniejsza polowa
\definecolor{kCiemnoZoltawy}{RGB}{166, 114, 20} % JavaScript Przyciemniony
\definecolor{kCiemnoZoltawy2}{RGB}{138, 100, 18} % JavaScript Przyciemniony2
\definecolor{kCiemnoNiebieski}{RGB}{102, 102, 152} % PHP wybrane menu
\definecolor{kSzaroFioletowy}{RGB}{76, 92, 120} % PHP wybrane menu
\colorlet{kDarkerSzaroFioletowy}{kSzaroFioletowy!96!black}
\definecolor{kFioletowoNiebieski}{RGB}{96, 32, 128} % PHP moje
\definecolor{kGranatowoSzary}{RGB}{0, 64, 101} % Perl
\definecolor{kBlekitnoNiebieski}{RGB}{22, 86, 138} % logo .NET
\definecolor{kCzarnoNiebieski}{RGB}{15, 59, 96} % isocpp.prg
\definecolor{kSzaroNiebieski}{RGB}{56, 91, 149} % przyciemnione C
\definecolor{kCzerwonyGNU}{RGB}{151, 22, 17} % Make
\definecolor{kSzaroNiebieskiPython}{RGB}{63, 103, 133}
\definecolor{kZoltyPython}{RGB}{213, 173, 66}
\colorlet{kDarkerZoltyPython}{kZoltyPython!50!black}
%----------------------------------------------------------------------
\definecolor{kolorC}{named}{kSzaroNiebieski}
\definecolor{kolorCpp}{named}{kCzarnoNiebieski}
\definecolor{kolorCsharp}{named}{kBlekitnoNiebieski}
\definecolor{kolorJava}{named}{kOranz}
%\definecolor{kolorPHP}{named}{kDarkerSzaroFioletowy}
\definecolor{kolorPHP}{named}{kFioletowoNiebieski}
\definecolor{kolorJavaScript}{named}{kZoltawy}
\definecolor{kolorJS}{named}{kCiemnoZoltawy2}
\definecolor{kolorPython}{named}{kDarkerZoltyPython}
\definecolor{kolorPerl}{named}{kGranatowoSzary}
\definecolor{kolorHTML}{named}{kRedishOrange}
\definecolor{kolorCSS}{named}{kNiebieskawy}
\definecolor{kolorSQL}{named}{kCyanoNiebieski}
\definecolor{kolorBash}{named}{Red}
\definecolor{kolorMake}{named}{kCzerwonyGNU}
%=================== Listingi zostaną uporządkowane ===================
% 1. Języki C-like 
% 1.1. Język C 
% 1.2. Język C++
% 1.3. Język C#
% 1.4. Język Java
% 2. Języki interpretowane
% 2.1. Język PHP
% 2.2. Język JavaScript
% 2.3. Język Python
% 2.4. Język Perl
% 3. Język znaczników i CCS
% 3.1. Język HTML
% 3.2. Język XML
% 3.3. Język CSS
% 4. Język Bash
% 5. Make
% 6. SQL
% 7. Text and Console
%----------------------------------------------------------------------
% 1.1. Język C 
\lstnewenvironment{lstC}
{\lstset{language=C, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorC},rulecolor=\color{kolorC}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCnr}
{\lstset{language=C, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorC},rulecolor=\color{kolorC}} }
{}
%----------------------------------------------------------------------
% 1.2. Język C++ 
\lstnewenvironment{lstCpp}
{\lstset{language=C++, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorCpp},rulecolor=\color{kolorCpp}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCppNr}
{\lstset{language=C++, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorCpp},rulecolor=\color{kolorCpp}} }
{}
%----------------------------------------------------------------------
% 1.3. Język C#
\lstnewenvironment{lstCs}
{\lstset{language=[sharp]C, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorCsharp},rulecolor=\color{kolorCsharp}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCsNr}
{\lstset{language=[sharp]C, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorCsharp},rulecolor=\color{kolorCsharp}} }
{}
%----------------------------------------------------------------------
% 1.4. Język Java
\lstnewenvironment{lstJava}
{\lstset{language=Java, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
frame=single, columns=flexible,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
rulecolor=\color{kolorJava}, commentstyle=\color{kolorJava}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaNr}
{\lstset{language=Java, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
frame=single, columns=flexible,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
rulecolor=\color{kolorJava}, commentstyle=\color{kolorJava}} }
{}
%----------------------------------------------------------------------
% 2.1. Język PHP
\lstnewenvironment{lstPHP}
{\lstset{language=PHP, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPHP},rulecolor=\color{kolorPHP}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstPHPnr}
{\lstset{language=PHP, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPHP},rulecolor=\color{kolorPHP}} }
{}
%----------------------------------------------------------------------
% 2.2. Język JavaScript
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaScript}
{\lstset{language=JavaScript, 
basicstyle=\ttfamily, keywordstyle=\bf, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJavaScript},rulecolor=\color{kolorJavaScript}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaScriptNr}
{\lstset{language=JavaScript, 
basicstyle=\ttfamily, keywordstyle=\bf, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJavaScript},rulecolor=\color{kolorJavaScript}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJS}
{\lstset{language=JSdef, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJS},rulecolor=\color{kolorJS}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJSnr}
{\lstset{language=JSdef, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJS},rulecolor=\color{kolorJS}} }
{}
%----------------------------------------------------------------------
% 2.3. Język Python
\lstnewenvironment{lstPy}
{\lstset{language=Python, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPython},rulecolor=\color{kSzaroNiebieskiPython}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstPyNr}
{\lstset{language=Python, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPython},rulecolor=\color{kSzaroNiebieskiPython}} }
{}
%----------------------------------------------------------------------
% 2.4. Język Perl
\lstnewenvironment{lstPerl}
{\lstset{language=Perl, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPerl},rulecolor=\color{kolorPerl}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstPerlNr}
{\lstset{language=Perl, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPerl},rulecolor=\color{kolorPerl}} }
{}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
% 3.1. Język HTML
\lstnewenvironment{lstHTML}
{\lstset{language=HTML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorHTML},rulecolor=\color{kolorHTML}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstHTMLnr}
{\lstset{language=HTML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorHTML},rulecolor=\color{kolorHTML}} }
{}
%----------------------------------------------------------------------
% 3.2. Język XML
\lstnewenvironment{lstXML}
{\lstset{language=XML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{gray},rulecolor=\color{gray}} }
{}
%----------------------------------------------------------------------
% 3.3. Język CSS
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCSS}
{\lstset{language=CSS, 
basicstyle=\ttfamily,columns=flexible,frame=single,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace,
commentstyle=\color{kolorCSS}} }
{}
%----------------------------------------------------------------------
% 4. Język Bash
\lstnewenvironment{lstBash}
{\lstset{language=bash, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,
showstringspaces=false,%commentstyle=\color{olive},
commentstyle=\color{kolorBash},rulecolor=\color{kolorBash}} }
{}
%----------------------------------------------------------------------
% 5. Make
\lstnewenvironment{lstMake}
{\lstset{language=Make, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,
showstringspaces=false,%commentstyle=\color{olive},
commentstyle=\color{kolorMake},rulecolor=\color{kolorMake}} }
{}
%----------------------------------------------------------------------
% 6. Język SQL
\lstnewenvironment{lstSQL}
{\lstset{language=SQL, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorSQL},rulecolor=\color{kolorSQL}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstSQLnr}
{\lstset{language=SQL, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorSQL},rulecolor=\color{kolorSQL}} }
{}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
\lstnewenvironment{lstV}
{\lstset{basicstyle=\ttfamily,frame=single,columns=flexible,
rulecolor=\color{Gray},backgroundcolor=\color{white},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstT}
{\lstset{basicstyle=\ttfamily,frame=single,columns=fixed,
,rulecolor=\color{gray},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstR}
{\lstset{basicstyle=\rm,columns=flexible,frame=leftline,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
%----------------------------------------------------------------------